package com.cnt.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cnt.entity.DonationRequest;
import com.cnt.vo.CheckDonationsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DonationRequestDao extends BaseMapper<DonationRequest> {

    @Select("select * from donation_request where donation_id = #{id}")
    public List<DonationRequest> getByDonationId(Integer id);

    List<CheckDonationsVo> getCheckList(Double minAmount, Double maxAmount, String name);
}
